﻿
using System;
using System.Windows.Forms;

//using ManageCppDll;

//using ManageCppDll;

namespace WindowsApplication2.其他
{
    public partial class 应用c : Form
    {
        public 应用c()
        {
            InitializeComponent();
        }

        //[DllImport("C_project.dll")]
        //static extern int shuchu(int i);


        //[DllImport("ClassLibrary2.dll", CallingConvention = CallingConvention.Cdecl)]
        //static extern int sum(int a, int b);

        //[DllImport("Project1.exe", EntryPoint = "sum", CallingConvention = CallingConvention.Cdecl)]
        //static extern int sum(int a, int b);






        private void button1_Click(object sender, EventArgs e)
        {

            //ManageCppDll.MyClass m = new ManageCppDll.MyClass();
            //var a=m.dowork();
            //MessageBox.Show(a.ToString());
            //int j = 1;

            //int i = shuchu(j);
            //MessageBox.Show(i.ToString());


        }

        private void button2_Click(object sender, EventArgs e)
        {
            //MessageBox.Show(sum(2, 3).ToString());
            MessageBox.Show("4");
            //ClassLibrary3.Class1 c = new ClassLibrary3.Class1();
            //var a = c.print();
            //MessageBox.Show(a.ToString());
        }

        private void 应用c_Load(object sender, EventArgs e)
        {

        }


    }
}